package com.tele.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.tele.domain.Nic;
import com.tele.service.ints.NicService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@SaCheckLogin
@RequiredArgsConstructor
public class NicController {
    final NicService nicService;
    @GetMapping("getAllNic")
    List<Nic> getAllNic(){
        return nicService.getAllNic();
    }
}
